package com.attilax.net;

import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.jackrabbit.webdav.client.methods.DavMethod;
import org.apache.jackrabbit.webdav.client.methods.MkColMethod;

public class webdavClientUtil {
	
	public static void main(String[] args) {
		
		
		
		//ver 2.6.10
		HttpClient HttpClient1 = HttpClients.createDefault();
		Credentials creds = new UsernamePasswordCredentials("admin", "password"); 
		//client.getState().setCredentials(AuthScope.ANY, creds);
		
		// MKCOL method 
		DavMethod mkCol = new MkColMethod("http://127.0.0.1/uploads/test"); 
		HttpClient1.execute(mkCol);
		//  DavMethod  HttpClient.execute

	}

}
